import {axiosGet,axiosPost} from '@/libs/http';
import {JUHE_APPKEY} from '@/config/key';
import service from "@/libs/http.js"
import qs from 'qs';

export  function getYearData (data){
    return  service({
          url:"calendar/year",
          method:"post",
          headers:{
              "Content-Type":"application/x-www-form-urlencoded"
          },
          data: qs.stringify({...data,key:JUHE_APPKEY})
      })
  }
  export  function getMonthData (data){
    return  service({
          url:"calendar/month",
          method:"post",
          headers:{
              "Content-Type":"application/x-www-form-urlencoded"
          },
          data: qs.stringify({...data,key:JUHE_APPKEY})
      })
  }
  
  /**
   * @description: 请求日资料
   * @param {type} 
   * @return {type} 
   */
  export  function getData (data){
    return  service({
          url:"calendar/day",
          method:"post",
          headers:{
              "Content-Type":"application/x-www-form-urlencoded"
          },
          data: qs.stringify({...data,key:JUHE_APPKEY})
      })
  }
  